package com.ddx.service;


import com.ddx.dto.ShoppingAccountFlowVo;
import com.ddx.dto.ShoppingOrderVo;
import com.ddx.pojo.ShoppingUser;
import com.ddx.pojo.ShoppingUserAddress;

import java.util.List;
import java.util.Map;

/**
 * @author dudianbo
 * @ClassName: ${CLASSNAME}
 * @Description: 个人中心
 * @date 2018/8/31
 */
public interface IShoppingUserCenterService {

    /**
     * 用户收货地址
     *
     * @param userId
     * @return
     */
    List<ShoppingUserAddress> addressInfo(String userId);

    /**
     * 用户订单
     *
     * @param shoppingUserVo
     * @return
     */
    List<ShoppingOrderVo> orderInfo(ShoppingOrderVo shoppingUserVo);

    void saveAddress(ShoppingUserAddress address);

    void delAddress(Long id, String userId);

    void updateAddress(ShoppingUserAddress address);

    void defaultAddress(Long id, String userId);

    ShoppingUserAddress getDefaultAddress(String userId);

    ShoppingUserAddress getAddressInfo(String addressId);

    public Map<String,Object> myAccount(String userId);
}
